package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_RoleButton", catalog="Id")
public class YsRoleButton extends BaseEntity<YsRoleButton> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="RoleId", nameJava="roleId", typeDataBase="bigint")
	private Long roleId;
	@YsField(nameDataBase="ButtonId", nameJava="buttonId", typeDataBase="bigint")
	private Long buttonId;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsRoleButton setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public YsRoleButton setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public Long getButtonId() {
		return buttonId;
	}
	public YsRoleButton setButtonId(Long buttonId) {
		this.buttonId = buttonId;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsRoleButton setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsRoleButton setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsRoleButton setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsRoleButton ysRoleButton(
		Long roleId,
		Long buttonId,
		Integer status
			) {
		YsRoleButton entity = new YsRoleButton();
		entity.setRoleId(roleId);
		entity.setButtonId(buttonId);
		entity.setStatus(status);
		return entity;
	}
}